class ChangeTeachingsFieldsToFloats < ActiveRecord::Migration
  def self.up
    remove_column :teachings,:usefulness
    remove_column :teachings,:effectiveness
    add_column :teachings,:usefulness,:float
    add_column :teachings,:effectiveness,:float
  end

  def self.down
    remove_column :teachings,:usefulness
    remove_column :teachings,:effectiveness
    add_column :teachings,:usefulness,:integer
    add_column :teachings,:effectiveness,:integer
  end
end
